package com._13read.rss.model;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

@Data
public class WxMpUserInfo {

    private String openId;
    private String nickName;
    private String gender;
    private String language;
    private String city;
    private String province;
    private String country;
    private String avatarUrl;
    private String unionId;
    private Watermark watermark;

    public static WxMpUserInfo fromJson(String json) {
        return JSONObject.parseObject(json, WxMpUserInfo.class);
    }

    @Data
    public static class Watermark {
        private String timestamp;
        private String appid;
    }
}

